<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    <a href='<?php echo U('order/order_list');?>' ><em>订单列表</em></a><span>|</span>
    <a href='<?php echo U('order/order_edit', 'oid='.$order['id']);?>'><em>订单详细信息</em></a><span>|</span>
    <a href='<?php echo U('order/order_delivery_list');?>'><em>发货单列表</em></a><span>|</span>
    <a href='javascript:;' class="on"><em>添加加配货单</em></a>
    </div>
</div>

<style type='text/css'>
.table_form tbody td{ border: 1px solid #EEEEEE;}
.division {
    background: none repeat scroll 0 0 #FFFFFF;
    border-color: #CCCCCC #BEC6CE #BEC6CE #CCCCCC;
    border-style: solid;
    border-width: 1px 2px 2px 1px;
    line-height: 150%;
    white-space: normal;
}
.division table {
    margin: 0;
    padding: 0;
}
.division th, .division td {
    border-color: #FFFFFF #DBE2E7 #DDDDDD #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #DBE2E7;
    border-style: solid;
    border-width: 1px;
    padding: 5px;
    vertical-align: top;
}
.division th {
    background: none repeat scroll 0 0 #E2E8EB;
    border-right: 1px solid #CCCCCC;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
    width: 140px;
}
.gridlist th{
	text-align:center;
	font-weight: bold;
	font-size: 12px;
}
.order_th{font-size: 14px; color: rgb(0, 0, 0); font-weight: bold; margin: 10px;overflow:hidden;}
</style>
<div class="pad-10">
<div class="col-tab">
<form name="myform" id="myform" action="__SELF__" method="post">
<div id="div_setting_1" class="contentList division pad-10">
<div class="table-grid" style="border: 1px solid #efefef;">
	<table width="100%" cellspacing="0" cellpadding="2" border="0" class="gridlist" id="order_items"> 
		<thead> 
			<tr>
			 <th style="width:150px;">货号</th> 
			 <th style="width:300px;">商品名称</th> 
			 <th style="width:100px;">库存</th>
			 <th style="width:100px;">购买总数量</th>
			 <th style="width:100px;">已发数量</th>
			 <th style="width:100px;">此单发货数量</th> 
			</tr> 
		</thead> 
		<tbody>
		<?php 
		if(isset($order['productList']) && $order['productList']):
			foreach ($order['productList'] as $product):
				if($product['qty'] == $product['send_number']) continue;
		?>
			<tr>
				<td align="center"><?php echo $product['product_sn'];?></td> 
				<td><?php echo $product['product_name'];if($product['attr']){echo ' ( '. $product['attr'] . ' )';}?></td> 
				<td align="center"><?php echo $product['stock'];?></td> 
				<td align="center"><?php echo $product['qty'];?></td> 
				<td align="center"><?php echo $product['send_number'];?></td> 
				<td align="center">
				<input type="hidden" value="<?php echo $product['id'];?>" name="send[<?php echo $product['id'];?>][id]" /> 
				<input type="text" size="4" value="<?php echo ($product['qty']-$product['send_number']);?>" name="send[<?php echo $product['id'];?>][number]" autocomplete="off"></td> 
			</tr>
		<?php 
			endforeach;
		endif;
		?>
		</tbody> 
	</table> 
	 <div class="bk15"></div>
<table width="100%" cellspacing="0" cellpadding="2" border="0" class="gridlist">
	 <tbody>
	 <tr>
	 		<th>操作备注：</th>
			<td>
				<textarea rows="3" cols="100" name="action_notice"></textarea>
			</td>
		</tr>
	 	</tbody>
	</table> 
</div>
<div class="bk15"></div>
<div style="float:right">
    <input name="dosubmit" type="submit" value="提交"  class="button" id="dosubmit" /></div>
</div>
</form>

</div>
</div>
</body>
</html>
